package org.tong.beans;

public class Teacher {
    private Integer id;
    private String name;
    private Integer no;
    private Integer version;

    private Student child;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Student getChild() {
        return child;
    }

    public void setChild(Student child) {
        this.child = child;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", no=" + no +
                ", version=" + version +
                ", child=" + child +
                '}';
    }
}
